import React,{useState} from 'react'
import Timer from './components/Timer'
export default function App() {
    let [flag, setFlag] = useState(true)
    return (
        <div>
            {flag && <Timer/>}
            <button onClick={()=>{
                setFlag(!flag);
            }}>切换</button>
        </div>
    )
}
